Google News
logo
Java - Interview Questions
Is it legal to initialize an array int i[] = {1, 2, 3, 4, 5};
Yes, it is perfectly legal. You can create and initialize array in same line in Java.
Advertisement